<%@page contentType="text/html; charset=gbk"%>
<%@page pageEncoding="gbk"%>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>
<%@ page import="java.io.*" %>
<%@page import="rest.action.front.UserSessionAction"%>
<%@page import="rest.common.valueobject.UserSessionInfo"%>
<%@page import="rest.action.front.MyCollectionAction"%>
<%
    UserSessionAction userSession = new UserSessionAction();
    UserSessionInfo sessionInfo = userSession.findSessionObject(request);
    String uid = "";
    if (sessionInfo == null){
       
        sessionInfo = new UserSessionInfo();
        sessionInfo.setUserID ("-1");
        
    }
    
    request.setCharacterEncoding ("UTF-8");
    BufferedReader in = request.getReader();
     
    MyCollectionAction obj = new MyCollectionAction();
   // boolean result = obj.addMyCollection (sessionInfo, in); 
    String result = obj.addMyCollectionNew (sessionInfo, in); 
    obj = null;   
    out.println (result);
%>
